﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TaiLieu;

public partial class tracnghiem : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Sessions.members == null)
        {
            LoadControlCenter("tn-message.ascx");
            return;
        }
        trac_nghiem();
    }
    protected void LoadControlCenter(string path)
    {
        this.pnContext.Controls.Clear();
        this.pnContext.Controls.Add(LoadControl(path));
    }
    public void trac_nghiem()
    {
        switch (QueryHelper.Get_Value(Request, 2))
        {
            case "hoa-hoc":
                LoadControlCenter("hoa-hoc/hoa-hoc-1.ascx");
                break;
            default:
                LoadControlCenter("tn_content.ascx");
                break;
        }
    }
}